package com.crm.dao.mapper.customMapper.customerManagerCustomMapper;

import com.crm.model.entity.customerManager.SingleProductCustomerContact;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/5/13 13:49
 */
public interface SingleProductCustomerContactCustomMapper {
    /**
     * 单品客户线上跟进联系人
     * @Author pym
     * @Date  2021/5/13 14:11
     * @param singleProductCustomerId 单品客户主键ID
     * @param accountId 账号ID
     * @return {@link {java.util.List<com.crm.model.entity.customerManager.SingleProductCustomerContact>}}
     */
    List<SingleProductCustomerContact> selectSingleProductCustomerContactById(@Param("singleProductCustomerId") String singleProductCustomerId,
                                                                              @Param("accountId") String accountId);

    /**
     * 单品客户-跟进-联系人回显
     * @Author pym
     * @Date  2021/5/13 15:40
     * @param singleProductCustomerId   --单品客户id
     * @param contactName  --联系人姓名
     * @return {@link {java.util.List<com.crm.model.entity.customerManager.SingleProductCustomerContact>}}
     */
    List<SingleProductCustomerContact> selectSingleProductCustomerContacts(@Param("singleProductCustomerId")String singleProductCustomerId,
                                                                           @Param("contactName") String contactName,
                                                                           @Param("accountId") String accountId);

    /**
     * 查询单品客户下联系人Id
     * @Author pym
     * @Date  2021/7/15 11:19
     * @param singleProductCustomerId 单品客户Id
     * @return {@link {java.util.List<java.lang.String>}}
     */
    List<String> selectSingleProductCustomerContactIdList(@Param("singleProductCustomerId") String singleProductCustomerId);

    /**
     * 批量删除单品客户下联系人
     * @Author pym
     * @Date  2021/7/15 11:21
     * @param ids 单品客户下联系人Ids
     * @return {@link {int}}
     */
    int batchDelSingleProductCustomerContactByIds(@Param("ids") List<String> ids);
}
